/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package elevatormanagementsystem.UCC;

import FloorUIForms.FloorUI;

/**
 *
 * @author Danny
 */
public class UCCPressUpButton implements UCC {
    FloorUI floor;
    String actionFloor;

    public UCCPressUpButton(FloorUI floorui, String floorNum) {
        floor = floorui;
        actionFloor= floorNum;
    }
    
    

    @Override
    public void Run() {
//        1. User presses the button
//          2. System lights up button
            floor.lightUpBttn(actionFloor);
//          3. System calls lift to go to that floor
//          4. Lift travels to that floor
//             4a. Lift is already on the floor, skip to step 6
//          5. Lift arrives
//          6. Door opens
            //Thread myThread = new Thread(startLiftMove);
            //myThread.Start(); 
            //floor.moveLift(actionFloor); 
//          7. Lights out
            floor.lightOutBttn(actionFloor);
    }
    
}
